<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>APP</title>
    <link rel="stylesheet" href="../../css/api.css" />
    <link rel="stylesheet" href="../../css/profile.css">
</head>
<body>
  <div class="plate">
  	<div class="profile_detail_container">
     		<div class="detail-title">
     			<div id="title"></div>
     		</div>
     		<div class="detail-contant">
     			<div id="content"></div>
     		</div>
  	</div>
  </div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/zepto.js"></script>
<script src="../../script/common.js"></script>
<script>

    apiready = function() {
      var id = api.pageParam.id;
      getHelpDetail(id);
    }

    function getHelpDetail(id) {
      showProgress();
      $.ajax({
          url : "http://www.aiyi5.com/getHelpDetail",
          type : "POST",
          async : false,
          data: {id: id},
          dataType: 'json',
          error : function(errorMsg) {
            toast(errorMsg);
            hideProgress();
          },
          success : function(data) {
            console.log(JSON.stringify(data));
            $('#title').html(data.name);
            $('#content').html(data.content);
            hideProgress();
          }
      });
    }
</script>
</html>
